tests/delta-crosscheck: Add missing --from
authorColin Walters <walters@verbum.org>
Fri, 29 Jul 2016 01:06:38 +0000 (21:06 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Fri, 29 Jul 2016 14:30:42 +0000 (14:30 +0000)
Otherwise we generate a static delta from the *previous* and get
confused.  To make doubly sure, add `--require-static-deltas` to pull.

Closes: #416
Approved by: jlebon

manual-tests/static-delta-generate-crosscheck.sh

index fbcbe677fd0885353ab0a7770f47ad9dc59e23c8..831e0b6252fb8bd09b38ca2f9101929448270ad2 100755 (executable)
@@ -45,10 +45,10 @@ validate_delta_options() {
     mkdir testrepo
     ostree --repo=testrepo init --mode=bare-user
     ostree --repo=testrepo remote add --set=gpg-verify=false local file://${repo}
-    ostree --repo=${repo} static-delta generate $@ ${from} ${to}
-    ostree --repo=testrepo pull local ${branch}@${from}
+    ostree --repo=${repo} static-delta generate $@ --from=${from} --to=${to}
+    ostree --repo=testrepo pull --require-static-deltas local ${branch}@${from}
     assert_streq $(ostree --repo=testrepo rev-parse ${branch}) ${from}
-    ostree --repo=testrepo pull local ${branch}
+    ostree --repo=testrepo pull --require-static-deltas local ${branch}
     assert_streq $(ostree --repo=testrepo rev-parse ${branch}) ${to}
     ostree --repo=testrepo fsck
     rm testrepo -rf